<?php
class GoodsAttrViewModel extends ViewModel{
	protected $tableName='type_attr';
	protected $viewFields=array(
		'type_attr'=>array(
			'name','type',
			'_type'=>'LEFT'
			),
		'goods_attr'=>array(
			'id','value','price',
			'_on'=>'type_attr.id=goods_attr.aid'
			)
		);
}
?>